package com.jt.demo6_anno;

import org.springframework.stereotype.Component;

@Component //将对象交给Spring容器管理
public class Tiger implements Pet{
    @Override
    public void hello() {
        System.out.println("我擦：什么鬼");
    }
}
